package org.wen;

import java.awt.event.ActionListener;
import java.io.*;

public class Main{
	DoPPTToImage doppt=null;
	PPTUI pt=null;
	Main(){
		super();
		pt=new PPTUI();
		doppt=new DoPPTToImage();
		while(true){
			if(this.pt.flag){
				String filename=pt.fd.getFile().toString();
				filename=filename.substring(0, filename.length()-3);
				pt.output_str+=filename;
				doppt.convert(pt.input_str, pt.output_str);
				this.pt.flag=false;
			}else{
				continue;
			}
			try {
				Thread.sleep(500);
			} catch (InterruptedException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}
	public static void main(String[] args) {
		new Main();
	}
}
